package com.cdz.charger.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import com.cdz.common.annotation.Excel;
import com.cdz.common.core.domain.BaseEntity;

/**
 * 支付对象 pay
 *
 * @author baefengk2
 * @date 2025-03-10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("支付实体")
public class Pay extends BaseEntity
        {
private static final long serialVersionUID=1L;

        /** 主键id */
        @ApiModelProperty(value = "主键ID")
        private Long id;

        /** 充电会话id */
        @Excel(name = "充电会话id")
        @ApiModelProperty(value = "充电会话id")
        private Long sessionId;

        /** 金额 */
        @Excel(name = "金额")
        @ApiModelProperty(value = "金额")
        private BigDecimal amount;

        /** 支付方法(微信, 支付宝等) */
        @Excel(name = "支付方法(微信, 支付宝等)")
        @ApiModelProperty(value = "支付方法(微信, 支付宝等)")
        private String payMethod;

        /** 交易时间 */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
        @ApiModelProperty(value = "交易时间")
        private LocalDateTime transactionTime;

        /** 支付状态 (0未支付 1已支付) */
        @Excel(name = "支付状态")
        @ApiModelProperty(value = "支付状态 (0未支付 1已支付)")
        private Integer status;

}